import { ADD_NUM } from '../type/num'
let num = (state = 1000, action) => {
    switch(action.type) {
        case ADD_NUM:
            state += action.num
            return state
        default: 
            return state
    }
}

export default num